{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nvar __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) {\n    if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  }\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport DoubleLeftOutlined from \"@ant-design/icons/es/icons/DoubleLeftOutlined\";\nimport DoubleRightOutlined from \"@ant-design/icons/es/icons/DoubleRightOutlined\";\nimport LeftOutlined from \"@ant-design/icons/es/icons/LeftOutlined\";\nimport RightOutlined from \"@ant-design/icons/es/icons/RightOutlined\";\nimport classNames from 'classnames';\nimport RcPagination from 'rc-pagination';\nimport enUS from \"rc-pagination/es/locale/en_US\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport { MiddleSelect, MiniSelect } from './Select';\nimport useStyle from './style';\nvar Pagination = function Pagination(_a) {\n  var customizePrefixCls = _a.prefixCls,\n    customizeSelectPrefixCls = _a.selectPrefixCls,\n    className = _a.className,\n    size = _a.size,\n    customLocale = _a.locale,\n    selectComponentClass = _a.selectComponentClass,\n    responsive = _a.responsive,\n    showSizeChanger = _a.showSizeChanger,\n    restProps = __rest(_a, [\"prefixCls\", \"selectPrefixCls\", \"className\", \"size\", \"locale\", \"selectComponentClass\", \"responsive\", \"showSizeChanger\"]);\n  var _useBreakpoint = useBreakpoint(responsive),\n    xs = _useBreakpoint.xs;\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls,\n    direction = _React$useContext.direction,\n    _React$useContext$pag = _React$useContext.pagination,\n    pagination = _React$useContext$pag === void 0 ? {} : _React$useContext$pag;\n  var prefixCls = getPrefixCls('pagination', customizePrefixCls);\n  // Style\n  var _useStyle = useStyle(prefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  var mergedShowSizeChanger = showSizeChanger !== null && showSizeChanger !== void 0 ? showSizeChanger : pagination.showSizeChanger;\n  var getIconsProps = function getIconsProps() {\n    var ellipsis = /*#__PURE__*/React.createElement(\"span\", {\n      className: \"\".concat(prefixCls, \"-item-ellipsis\")\n    }, \"\\u2022\\u2022\\u2022\");\n    var prevIcon = /*#__PURE__*/React.createElement(\"button\", {\n      className: \"\".concat(prefixCls, \"-item-link\"),\n      type: \"button\",\n      tabIndex: -1\n    }, /*#__PURE__*/React.createElement(LeftOutlined, null));\n    var nextIcon = /*#__PURE__*/React.createElement(\"button\", {\n      className: \"\".concat(prefixCls, \"-item-link\"),\n      type: \"button\",\n      tabIndex: -1\n    }, /*#__PURE__*/React.createElement(RightOutlined, null));\n    var jumpPrevIcon = /*#__PURE__*/React.createElement(\"a\", {\n      className: \"\".concat(prefixCls, \"-item-link\")\n    }, /*#__PURE__*/React.createElement(\"div\", {\n      className: \"\".concat(prefixCls, \"-item-container\")\n    }, /*#__PURE__*/React.createElement(DoubleLeftOutlined, {\n      className: \"\".concat(prefixCls, \"-item-link-icon\")\n    }), ellipsis));\n    var jumpNextIcon = /*#__PURE__*/React.createElement(\"a\", {\n      className: \"\".concat(prefixCls, \"-item-link\")\n    }, /*#__PURE__*/React.createElement(\"div\", {\n      className: \"\".concat(prefixCls, \"-item-container\")\n    }, /*#__PURE__*/React.createElement(DoubleRightOutlined, {\n      className: \"\".concat(prefixCls, \"-item-link-icon\")\n    }), ellipsis));\n    // change arrows direction in right-to-left direction\n    if (direction === 'rtl') {\n      var _ref = [nextIcon, prevIcon];\n      prevIcon = _ref[0];\n      nextIcon = _ref[1];\n      var _ref2 = [jumpNextIcon, jumpPrevIcon];\n      jumpPrevIcon = _ref2[0];\n      jumpNextIcon = _ref2[1];\n    }\n    return {\n      prevIcon: prevIcon,\n      nextIcon: nextIcon,\n      jumpPrevIcon: jumpPrevIcon,\n      jumpNextIcon: jumpNextIcon\n    };\n  };\n  return /*#__PURE__*/React.createElement(LocaleReceiver, {\n    componentName: \"Pagination\",\n    defaultLocale: enUS\n  }, function (contextLocale) {\n    var _classNames;\n    var locale = Object.assign(Object.assign({}, contextLocale), customLocale);\n    var isSmall = size === 'small' || !!(xs && !size && responsive);\n    var selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);\n    var extendedClassName = classNames((_classNames = {}, _defineProperty(_classNames, \"\".concat(prefixCls, \"-mini\"), isSmall), _defineProperty(_classNames, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), _classNames), className, hashId);\n    return wrapSSR( /*#__PURE__*/React.createElement(RcPagination, Object.assign({}, getIconsProps(), restProps, {\n      prefixCls: prefixCls,\n      selectPrefixCls: selectPrefixCls,\n      className: extendedClassName,\n      selectComponentClass: selectComponentClass || (isSmall ? MiniSelect : MiddleSelect),\n      locale: locale,\n      showSizeChanger: mergedShowSizeChanger\n    })));\n  });\n};\nexport default Pagination;","map":{"version":3,"names":["__rest","s","e","t","p","Object","prototype","hasOwnProperty","call","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","DoubleLeftOutlined","DoubleRightOutlined","LeftOutlined","RightOutlined","classNames","RcPagination","enUS","React","ConfigContext","useBreakpoint","LocaleReceiver","MiddleSelect","MiniSelect","useStyle","Pagination","_a","customizePrefixCls","prefixCls","customizeSelectPrefixCls","selectPrefixCls","className","size","customLocale","locale","selectComponentClass","responsive","showSizeChanger","restProps","xs","useContext","getPrefixCls","direction","pagination","wrapSSR","hashId","mergedShowSizeChanger","getIconsProps","ellipsis","createElement","prevIcon","type","tabIndex","nextIcon","jumpPrevIcon","jumpNextIcon","componentName","defaultLocale","contextLocale","assign","isSmall","extendedClassName"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/pagination/Pagination.js"],"sourcesContent":["var __rest = this && this.__rest || function (s, e) {\n  var t = {};\n  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n  if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n    if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n  }\n  return t;\n};\nimport DoubleLeftOutlined from \"@ant-design/icons/es/icons/DoubleLeftOutlined\";\nimport DoubleRightOutlined from \"@ant-design/icons/es/icons/DoubleRightOutlined\";\nimport LeftOutlined from \"@ant-design/icons/es/icons/LeftOutlined\";\nimport RightOutlined from \"@ant-design/icons/es/icons/RightOutlined\";\nimport classNames from 'classnames';\nimport RcPagination from 'rc-pagination';\nimport enUS from \"rc-pagination/es/locale/en_US\";\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport useBreakpoint from '../grid/hooks/useBreakpoint';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport { MiddleSelect, MiniSelect } from './Select';\nimport useStyle from './style';\nconst Pagination = _a => {\n  var {\n      prefixCls: customizePrefixCls,\n      selectPrefixCls: customizeSelectPrefixCls,\n      className,\n      size,\n      locale: customLocale,\n      selectComponentClass,\n      responsive,\n      showSizeChanger\n    } = _a,\n    restProps = __rest(_a, [\"prefixCls\", \"selectPrefixCls\", \"className\", \"size\", \"locale\", \"selectComponentClass\", \"responsive\", \"showSizeChanger\"]);\n  const {\n    xs\n  } = useBreakpoint(responsive);\n  const {\n    getPrefixCls,\n    direction,\n    pagination = {}\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('pagination', customizePrefixCls);\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const mergedShowSizeChanger = showSizeChanger !== null && showSizeChanger !== void 0 ? showSizeChanger : pagination.showSizeChanger;\n  const getIconsProps = () => {\n    const ellipsis = /*#__PURE__*/React.createElement(\"span\", {\n      className: `${prefixCls}-item-ellipsis`\n    }, \"\\u2022\\u2022\\u2022\");\n    let prevIcon = /*#__PURE__*/React.createElement(\"button\", {\n      className: `${prefixCls}-item-link`,\n      type: \"button\",\n      tabIndex: -1\n    }, /*#__PURE__*/React.createElement(LeftOutlined, null));\n    let nextIcon = /*#__PURE__*/React.createElement(\"button\", {\n      className: `${prefixCls}-item-link`,\n      type: \"button\",\n      tabIndex: -1\n    }, /*#__PURE__*/React.createElement(RightOutlined, null));\n    let jumpPrevIcon = /*#__PURE__*/React.createElement(\"a\", {\n      className: `${prefixCls}-item-link`\n    }, /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-item-container`\n    }, /*#__PURE__*/React.createElement(DoubleLeftOutlined, {\n      className: `${prefixCls}-item-link-icon`\n    }), ellipsis));\n    let jumpNextIcon = /*#__PURE__*/React.createElement(\"a\", {\n      className: `${prefixCls}-item-link`\n    }, /*#__PURE__*/React.createElement(\"div\", {\n      className: `${prefixCls}-item-container`\n    }, /*#__PURE__*/React.createElement(DoubleRightOutlined, {\n      className: `${prefixCls}-item-link-icon`\n    }), ellipsis));\n    // change arrows direction in right-to-left direction\n    if (direction === 'rtl') {\n      [prevIcon, nextIcon] = [nextIcon, prevIcon];\n      [jumpPrevIcon, jumpNextIcon] = [jumpNextIcon, jumpPrevIcon];\n    }\n    return {\n      prevIcon,\n      nextIcon,\n      jumpPrevIcon,\n      jumpNextIcon\n    };\n  };\n  return /*#__PURE__*/React.createElement(LocaleReceiver, {\n    componentName: \"Pagination\",\n    defaultLocale: enUS\n  }, contextLocale => {\n    const locale = Object.assign(Object.assign({}, contextLocale), customLocale);\n    const isSmall = size === 'small' || !!(xs && !size && responsive);\n    const selectPrefixCls = getPrefixCls('select', customizeSelectPrefixCls);\n    const extendedClassName = classNames({\n      [`${prefixCls}-mini`]: isSmall,\n      [`${prefixCls}-rtl`]: direction === 'rtl'\n    }, className, hashId);\n    return wrapSSR( /*#__PURE__*/React.createElement(RcPagination, Object.assign({}, getIconsProps(), restProps, {\n      prefixCls: prefixCls,\n      selectPrefixCls: selectPrefixCls,\n      className: extendedClassName,\n      selectComponentClass: selectComponentClass || (isSmall ? MiniSelect : MiddleSelect),\n      locale: locale,\n      showSizeChanger: mergedShowSizeChanger\n    })));\n  });\n};\nexport default Pagination;"],"mappings":";;AAAA,IAAIA,MAAM,GAAG,IAAI,IAAI,IAAI,CAACA,MAAM,IAAI,UAAUC,CAAC,EAAEC,CAAC,EAAE;EAClD,IAAIC,CAAC,GAAG,CAAC,CAAC;EACV,KAAK,IAAIC,CAAC,IAAIH,CAAC;IAAE,IAAII,MAAM,CAACC,SAAS,CAACC,cAAc,CAACC,IAAI,CAACP,CAAC,EAAEG,CAAC,CAAC,IAAIF,CAAC,CAACO,OAAO,CAACL,CAAC,CAAC,GAAG,CAAC,EAAED,CAAC,CAACC,CAAC,CAAC,GAAGH,CAAC,CAACG,CAAC,CAAC;EAAC;EACjG,IAAIH,CAAC,IAAI,IAAI,IAAI,OAAOI,MAAM,CAACK,qBAAqB,KAAK,UAAU,EAAE,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEP,CAAC,GAAGC,MAAM,CAACK,qBAAqB,CAACT,CAAC,CAAC,EAAEU,CAAC,GAAGP,CAAC,CAACQ,MAAM,EAAED,CAAC,EAAE,EAAE;IAC3I,IAAIT,CAAC,CAACO,OAAO,CAACL,CAAC,CAACO,CAAC,CAAC,CAAC,GAAG,CAAC,IAAIN,MAAM,CAACC,SAAS,CAACO,oBAAoB,CAACL,IAAI,CAACP,CAAC,EAAEG,CAAC,CAACO,CAAC,CAAC,CAAC,EAAER,CAAC,CAACC,CAAC,CAACO,CAAC,CAAC,CAAC,GAAGV,CAAC,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